<template>
	<view class="square">
		<view class="trans-item"></view>
		<view class="trans-item"></view>
		<view class="trans-item"></view>
		<div class="content">content is here</div>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">
	page {
		display: flex;
		justify-content: center;
		align-items: center;
		min-height: 100vh;
		background: #000;
		padding: 40upx;
	}

	.square {
		position: relative;
		width: 400px;
		height: 400px;
		display: flex;
		justify-content: center;
		align-items: center;

		.trans-item {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			border: 2px solid #fff;
			border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
		}

		.trans-item:nth-child(1) {
			animation: animate 6s linear infinite;
			border: 34upx dotted yellow;
		}

		.trans-item:nth-child(2) {
			animation: animate 4s linear infinite;
			border: 24upx double red;
		}

		.trans-item:nth-child(3) {
			animation: animate2 10s linear infinite;
			border: 14upx dashed green;
		}
	}

	@keyframes animate {
		0% {
			transform: rotate(0deg);
		}

		100% {
			transform: rotate(360deg);
		}
	}

	@keyframes animate2 {
		0% {
			transform: rotate(360deg);
		}

		100% {
			transform: rotate(0deg);
		}
	}

	.content {
		color: #fff;
	}
</style>
